package cn.edu.ujn.lab3.dao;

import java.util.List;

import cn.edu.ujn.lab3.dao.Orders;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Orders row);

    int insertSelective(Orders row);

    Orders selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Orders row);

    int updateByPrimaryKey(Orders row);
    
    //根据cust_id查询订单
    Orders selectByCustId(Integer custId);
    
    //根据number查询订单
    Orders selectByNumber(Integer number);
    
    //查询全部订单
    public List<Orders> findAll(Orders orders);
    
    //查询订单总数
    public int selectOrderListCount(Orders orders);
}